const dalImg = (url: string | undefined | null) =>
  url
    ? url
    : "https://img0.baidu.com/it/u=338427172,2467651654&fm=253&fmt=auto&app=138&f=PNG?w=576&h=472";

const isFH = (state: any) => {
  if (state == 0) {
    return "未支付";
  }
  if (state == 1) {
    return "已支付";
  }
  if (state == 2) {
    return "待发货";
  }
  if (state == 3) {
    return "待评价";
  }
};
export { dalImg, isFH };
